package com.example.chat.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName(value = "moment_comments")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MomentComment {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("moments_id")
    private Long momentsId;
    @TableField("user_id")
    private Long userId;
    @TableField("text")
    private String text;
    @TableField("create_time")
    private LocalDateTime createTime;
}
